package org.jmh.gift.domain;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author lingfeng
 * @since 2024-08-06
 */
@TableName("t_order_gift_comment")
public class OrderGiftComment extends Model<OrderGiftComment> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Integer level;
    @TableField("order_sn")
    private String orderSn;
    @TableField("order_id")
    private Long orderId;
    private String content;
    @TableField("user_id")
    private Long userId;
    private String username;
    @TableField("create_time")
    private Date createTime;
    @TableField("sku_id")
    private Long skuId;
    @TableField("sku_info")
    private String skuInfo;
    @TableField("spu_id")
    private Long spuId;
    @TableField("spu_name")
    private String spuName;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    public String getOrderSn() {
        return orderSn;
    }

    public void setOrderSn(String orderSn) {
        this.orderSn = orderSn;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getSkuInfo() {
        return skuInfo;
    }

    public void setSkuInfo(String skuInfo) {
        this.skuInfo = skuInfo;
    }

    public Long getSpuId() {
        return spuId;
    }

    public void setSpuId(Long spuId) {
        this.spuId = spuId;
    }

    public String getSpuName() {
        return spuName;
    }

    public void setSpuName(String spuName) {
        this.spuName = spuName;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderGiftComment{" +
        ", id=" + id +
        ", level=" + level +
        ", orderSn=" + orderSn +
        ", orderId=" + orderId +
        ", content=" + content +
        ", userId=" + userId +
        ", username=" + username +
        ", createTime=" + createTime +
        ", skuId=" + skuId +
        ", skuInfo=" + skuInfo +
        ", spuId=" + spuId +
        ", spuName=" + spuName +
        "}";
    }
}
